Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 5, 2026

Bumps jspdf and jspdf-autotable. These dependencies needed to be updated together.
Updates jspdf from 3.0.1 to 4.0.0

Release notes

Sourced from jspdf's releases.

v4.0.0

This release fixes a critical path traversal/local file inclusion security vulnerability in the jsPDF Node.js build. File system access is now restricted by default and can be enabled by either using node's --permission flag or the new jsPDF.allowFsRead property.

There are no other breaking changes.

v3.0.4

This release includes a bunch of bugfixes. Thanks to all contributors!

What's Changed

New Contributors

Full Changelog: parallax/jsPDF@v3.0.3...v3.1.0

v3.0.3

This release fixes regressions with PNG encoding that were introduced in v3.0.2.

What's Changed

New Contributors

Full Changelog: parallax/jsPDF@v3.0.2...v3.0.3

v3.0.2

This release fixes a security issue where parsing of corrupt PNG images could lead to long running loops and denial of service.

What's Changed

... (truncated)

Commits
  • e6cf03d 4.0.0
  • a688c8f restrict file system access in node build (#3931)
  • a504e97 3.0.4
  • de802ab Fix Incorrect Typing for Margins in the TableConfig Interface Definition (#3816)
  • 87162d1 chore: bump checkout, setup-node, and stale actions (#3907)
  • e7dc622 Fix: Context2d font regex too restrictive ( #3904 ) (#3906)
  • e080935 Do not add pages dynamically unless autoPaging is enabled (#3915)
  • c768910 add package.json exports field (#3903)
  • c10d90c Fix API.internal.pages not being updated when restoring a RenderTarget ( #389...
  • 2db3d9d fix font list cache invalidation issue in context2d module (#3891)
  • Additional commits viewable in compare view

Updates jspdf-autotable from 5.0.2 to 5.0.7

Release notes

Sourced from jspdf-autotable's releases.

v5.0.7

Fixed npm publishing (v5.0.5 was never published)

v5.0.5

Updated to allow jsPDF 4.0 as peer dependency.

Commits
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for jspdf-autotable since your current version.


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [jspdf](https://github.com/parallax/jsPDF) and [jspdf-autotable](https://github.com/simonbengtsson/jsPDF-AutoTable). These dependencies needed to be updated together.

Updates `jspdf` from 3.0.1 to 4.0.0
- [Release notes](https://github.com/parallax/jsPDF/releases)
- [Changelog](https://github.com/parallax/jsPDF/blob/master/RELEASE.md)
- [Commits](parallax/jsPDF@v3.0.1...v4.0.0)

Updates `jspdf-autotable` from 5.0.2 to 5.0.7
- [Release notes](https://github.com/simonbengtsson/jsPDF-AutoTable/releases)
- [Commits](simonbengtsson/jsPDF-AutoTable@v5.0.2...v5.0.7)

---
updated-dependencies:
- dependency-name: jspdf
  dependency-version: 4.0.0
  dependency-type: direct:production
- dependency-name: jspdf-autotable
  dependency-version: 5.0.7
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jan 5, 2026
@vercel
Copy link

vercel bot commented Jan 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
transcriptr Ready Ready Preview, Comment Jan 5, 2026 6:14pm

@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for transcriptr failed. Why did it fail? →

Name Link
🔨 Latest commit d38a665
🔍 Latest deploy log https://app.netlify.com/projects/transcriptr/deploys/695bff54b7324a000708ec96

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

"express": "^5.1.0",
"file-saver": "^2.0.5",
"firebase": "^11.9.1",
"framer-motion": "^12.19.1",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The default import for jsPDF in TranscriptionResult.tsx is incompatible with the newly upgraded v4.0.0, causing a runtime error on PDF download.
Severity: CRITICAL | Confidence: High

🔍 Detailed Analysis

The upgrade to jspdf v4.0.0 requires a named import (import { jsPDF } from "jspdf";), but the file src/components/transcription/TranscriptionResult.tsx continues to use a default import (import jsPDF from "jspdf";). This will cause a runtime error, such as jsPDF is not a constructor, when a user attempts to use the "Download as PDF" functionality. This action triggers the handleDownloadPdf function, which relies on the incorrect import, causing the feature to fail in production.

💡 Suggested Fix

In src/components/transcription/TranscriptionResult.tsx, change the import statement from import jsPDF from "jspdf"; to import { jsPDF } from "jspdf"; to align with the breaking changes in jspdf v4.0.0.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: package.json#L38

Potential issue: The upgrade to `jspdf` v4.0.0 requires a named import (`import { jsPDF
} from "jspdf";`), but the file `src/components/transcription/TranscriptionResult.tsx`
continues to use a default import (`import jsPDF from "jspdf";`). This will cause a
runtime error, such as `jsPDF is not a constructor`, when a user attempts to use the
"Download as PDF" functionality. This action triggers the `handleDownloadPdf` function,
which relies on the incorrect import, causing the feature to fail in production.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8182364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant